package com.open.basic.request;

import com.open.basic.BaseRequest;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

/**
 * @author: system
 * @Date: 2024/4/22 23:03
 * @Version: V1.0
 * @description: desc:
 */

@Data
@ToString(callSuper = true)
public class StatusRequest extends BaseRequest {

    @NotEmpty(message = "id不能为空")
    private Long id;

    /**
     * 状态 1 正常 2 禁用 3 冻结
     */
    @Min(value = 0, message = "status不能小于0")
    @Max(value = 10, message = "status不能大于10")
    private int status;
}
